package ca.utoronto.utm.csc301.euchre.common;

public enum Suit {
	DIAMONDS,
	CLUBS,
	HEARTS,
	SPADES;
	
	public boolean isOfTheSameColor(Suit suit) {
 		return suit.ordinal() % 4 == ordinal() % 4;
 	}
	
	public Suit getSuitOfTheSameColor() {
		return values()[(this.ordinal() + 2) % 4];
	}
}
